<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if( !function_exists('template_assign_by_ref')) {
    function template_assign_by_ref($name, &$param) {
        $ci =& get_instance();
        $ci->template->assignByRef($name, $param);
    }
}

if( !function_exists('template_assign')) {
    function template_assign($name, $param) {
        $ci =& get_instance();
        $ci->template->assign($name, $param);
    }
}

if( !function_exists('template_fetch')) {
    function template_fetch($template = null, $cache_id = null, $compile_id = null, $parent = null) {
        $ci =& get_instance();
        $ci->template->fetch($template, $cache_id, $compile_id, $parent);
    }
}

if( !function_exists('template_display')) {
    function template_display($template, $cache_id, $compile_id, $parent) {
        $ci =& get_instance();
        $ci->template->display($template, $cache_id, $compile_id, $parent);
    }
}